package com.welike.shibo.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.welike.shibo.eneity.Goods;
import org.apache.ibatis.annotations.Param;

/**
 * Created by fangyu on 2019-09-10.
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    String queryNameByShopId(@Param("shopId")String shopId);

    Goods queryAllByShopId(@Param("shopId")String shopId);

    Goods queryAllByNameLike(@Param("likeName")String likeName);

    IPage<Goods> queryGoodsPage(Page<Goods> page);

}